home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: How to test a random generator ?
- Date: 9 Feb 1996 11:19:28 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4fg6o0INNcru@keats.ugrad.cs.ubc.ca>
- References: <4e2q7g$oe@centre.univ-orleans.fr> <4e933p$t25@longwood.cs.ucf.edu> <9603010.14743@mulga.cs.mu.OZ.AU> <4eneee$86r@centre.univ-orleans.fr>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4eneee$86r@centre.univ-orleans.fr>,
- Emmanuel GUYOT <emmguyot@desiree.univ-orleans.fr> wrote:
- >Stephen Baillie (baillie@munta.cs.mu.OZ.AU) wrote:
- >
- >: There are various statistical tests you can use to determine if a
- >: random number generator exhibits certain properties of truly
- >: random sequences. The most common/appropriate/applicable is
- >: probably the chi squared test. Basically, you take n random
- >
- >
- >I'm a bit surprise by this because if you take a low number of iterations,
- >I have the 'not bad' comment whereas if I use a high number of iterations
- >I have the 'too biased' comment.
- >
- >Shouldn't the chi2 variable be average or something like that to take into
- >account the number of iterations ?
-
- No. The results possibly indicate that your sequence appears random for low
- iterations, but biases start to appear for large iterations. This is a
- limiting process, meaning that the result becomes more meaningful as the number
- of trials tends to infinity.
- --
-
-